/*
** main.c for alum1 in /home/nadali_t//local/Projets/CprgElem/alum1
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Wed Feb  1 11:23:24 2012 thomas nadalie
** Last update Mon Feb  6 17:57:36 2012 thomas nadalie
*/

#include	"my.h"

char	**create_alum(char **alum)
{
  alum = malloc(sizeof(char *) * 5);
  if (alum == NULL)
    {
      my_put_err("Malloc failed\n");
      exit (1);
    }
  alum[0] = my_strdup("   |   ");
  my_putchar('\n');  
  alum[1] = my_strdup( "  |||  ");
  my_putchar('\n');
  alum[2] = my_strdup(" ||||| ");
  my_putchar('\n');
  alum[3] = my_strdup("|||||||");
  my_putchar('\n');  
  alum[4] = NULL;
  return (alum);
}

void	read_buffer(char **alum)
{
  alum = malloc(sizeof(char *) * 5);
  //  line = malloc(sizeof(int)); 
  my_line(alum);
}

int	main()
{
  struct termios	t;
  char			**alum;

  alum = malloc(sizeof(char *) * 5);
  raw_mode(&t);
  create_alum(alum);
  read_buffer(alum);
  return (0);
}
